package com.kgc.controller;

import com.kgc.pojo.Goods;
import com.kgc.service.GoodsService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {

    @Reference(version = "0.0.0")
    private GoodsService goodsService;

    @GetMapping("getOrderDeatil")
    public Object getOrderDeatil(Integer id){
        //从订单中获取到商品ID

        Goods goods = goodsService.getGoodsById(id);

        return goods;
    }
}
